<?php
$this->breadcrumbs=array(
	Shop::t('Products')=>array('index'),
	$model->name,
);
?>
<div class="product-content">
    <h2 class="title radius-5px"><?php echo $model->name; ?></h2>
<div class="product-images">
<?php 
if($model->images) {
	foreach($model->images as $image) {
		$this->renderPartial('/image/view', array( 'model' => $image,'desc'=>$model->description));
		echo '<br />'; 
	}
} else 
$this->renderPartial('/image/view', array( 'model' => new Image(),'desc'=>$model->description));
?>	
</div>
<div class="product-detail">
    

<div class="product-description">
	<p> <?php echo $model->description; ?> </p>
</div>
    
<div class="product-options"> 
	<?php  $this->renderPartial('/products/addToCart', array(
			'model' => $model,'hasDis'=>$hasDis)); ?>
</div>
</div>

</div>
<div class="supplier-of radius-8px">
    <p class="title">Nơi bán sản phẩm này </p>
    <?php 
    $this->widget('zii.widgets.CListView', array(
        'dataProvider' => $data,
        'summaryText' => ' ',
        'itemView' => '_view2',
    )); ?>
</div>

